package southwind.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import southwind.entity.User;
import southwind.dao.UserDao;
import southwind.service.UserService;
import southwind.vo.UserVo;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findAll() {

        UserVo userVo = new UserVo();
        userVo.setCode(0);
        userVo.setMsg("");
        userVo.setCount(1);
        return userDao.findAll();
    }
}
